package com.fawde.mall.vo;

/**
 * 描述：统一返回对象枚举
 *
 * @author xiaohei on 2022/8/24
 * @since 1.0.0
 */
public enum RespBeanEnum {
    //枚举 正号为成功  负号为失败
    SUCCESS(200,"操作成功"),
    ERROR(-1,"操作失败"),
    ;
    private final long code;
    private final String msg;

    RespBeanEnum(long code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public long getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
